﻿@model IEnumerable<Kavaa.Modules.PortailMedical.Entity.Acte>
@using System.Web.Optimization
@using BootstrapSupport
@using NavigationRoutes

@{
   
    Layout =null;
}
 <style>
                          .multi-list 
{
    float: left;
    padding-right: 50px;
}

.clear
{
    clear: both;
}
.fieldset {
    border: 1px solid #ccc;
    padding: 10px;
}
         
      </style>

                  @{
    if (Model != null)
    {
        int itemCount = 0;
       
         
        <ul class="multi-list">
            @foreach (var item in Model) {
                itemCount++;
                <li>
                   <input type="checkbox" value= @item.Id name="selectedactes"/> &nbsp; &nbsp; 
                    @Html.DisplayFor(modelItem => item.Name)
                </li>
                if (Model.Count() >  3 && itemCount == (int)(Model.Count() / 2))
                {
                    @Html.Raw("</ul><ul class=\"multi-list\">");
                }
            }
        </ul>
        <div class="clear"></div>
    }
} 